﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace Autorent.Desktop.Main.Validations
{
    public class NotEmptyRule : ValidationRule
    {
        public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo)
        {
            if (value.Equals(string.Empty)) return new ValidationResult(false, "Field cannot be empty");

            return new ValidationResult(true, null);
        }
    }
}
